-- GENERATED SPELL FOR [Telredor Guard] --


function spell0_18922(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(12170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18922', 631, 1)
end

function spell1_18922(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_18922', 5260, 1)
end

function Sorts_18922(pUnit, Event)
local choix_sorts_18922 = math.random(0, 1)
if choix_sorts_18922 == 0 then
pUnit:RegisterEvent('spell0_18922', 1, 1)
end
if choix_sorts_18922 == 1 then
pUnit:RegisterEvent('spell1_18922', 1, 1)
end
end

function mob18922_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18922', math.random(1500, 3000), 1)
end

function mob18922_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18922_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18922_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18922, 1, 'mob18922_Action')
RegisterUnitEvent(18922, 2, 'mob18922_Leave')
RegisterUnitEvent(18922, 3, 'mob18922_Kill')
RegisterUnitEvent(18922, 4, 'mob18922_Die')
